package com.singfan.core.dao.database;

import com.singfan.core.dao.database.model.CustomerCoupon;

import java.util.List;

/**
 * Author: hansonghe
 * Date: 2015-09-15 12:15
 * Desc:
 */
public interface ICustomerCouponDao {
    void create(CustomerCoupon customerCoupon);

    List<CustomerCoupon> selectListByCustomerId(long customerId, boolean isExpired, int pageIndex, int pageSize);

    CustomerCoupon selectById(long couponId);

    void deleteByOrderId(long orderId);

    void setOrderId(long couponId, long orderId);

    void cancelOrderId(long orderId);

    void deleteByCouponId(long couponId);
}
